
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

</head>

<body>




<?php
include  ("Db_Base.php");
//require_once('class.Db_Base.php');
$news=new Db_Base();//构建对象
$sql="select  *  from php_user limit 0,100";//初始化sql语句
$news->Db_Query($sql);//向数据库插入sql语句
while($re=$news->Db_Fetch_Array())//循环输出sql结果集
{
    echo $re['id'];
    echo $re['username'];//keyA,keyB为你数据表的键
    echo'</br>';
}
echo $news->Db_Num_Rows();//输出本次sql语句影响的行数，假若sql语句是update,delete,insert的，则用  Db_Affected_Rows() 函数
$news->Db_Free_Result();//清空查询结果

?>

</body>

</html>